<div>
  <!-- 步骤条 -->
  <el-steps :active="currentStep">
    <el-step title="第一步" description="基本信息"></el-step>
    <el-step title="第二步" description="商品图片"></el-step>
    <el-step title="第三步" description="商品内容"></el-step>
  </el-steps>
  <!-- 左侧标签页 -->
  <el-tabs
    :value="currentTab"
    tab-position="left"
    style="height: 200px;"
    @tab-click="tabclick"
    class="notHide"
  >
    <el-tab-pane label="基本信息">
      <!-- 基本信息主题 -->
      <el-form label-position="right" label-width="80px" :model="addGoodData">
        <el-form-item label="商品名称">
          <el-input v-model="addGoodData.goods_name"></el-input>
        </el-form-item>
        <el-form-item label="商品价格">
          <el-input v-model="addGoodData.goods_price"></el-input>
        </el-form-item>
        <el-form-item label="商品重量">
          <el-input v-model="addGoodData.goods_weight"></el-input>
        </el-form-item>
        <el-form-item label="商品数量">
          <el-input v-model="addGoodData.goods_number"></el-input>
        </el-form-item>
        <el-form-item label="商品分类">
          <!-- 联级选择器 -->
          <el-cascader
            v-model="cascaderValue"
            :options="cascaderList"
            @change="cascaderChange"
            :props="cascaderProps"
          ></el-cascader>
        </el-form-item>
        <el-form-item label="是否促销">
          <el-radio-group v-model="currentRadio">
            <el-radio :label="1">是</el-radio>
            <el-radio :label="2">否</el-radio>
          </el-radio-group>
        </el-form-item>
      </el-form>
      <!-- 下一步按钮 -->
      <el-button type="primary" @click="next(2,'1')">下一步</el-button>
    </el-tab-pane>
    <el-tab-pane label="商品图片">
      <el-upload
        action="http://localhost:8888/api/private/v1/upload"
        list-type="picture-card"
        :headers="uploadDefault"
        :on-success="uploadPicSuccess"
        :on-preview="handlePictureCardPreview"
        :on-remove="handleRemove"
      >
        <i class="el-icon-plus"></i>
      </el-upload>
      <el-dialog :visible.sync="uploadDialogVisible">
        <img width="100%" :src="uploadImageUrl" alt="" />
      </el-dialog>
      <el-button type="primary" @click="next(3,'2')">下一步</el-button>
    </el-tab-pane>
    <el-tab-pane label="商品内容" class="editorCss">
      <!-- 这是一个富文本编辑器 -->
      <quill-editor v-model="quillEditorContent" ref="myQuillEditor">
      </quill-editor>
      <el-button type="primary" @click="confirmAddGood">确定</el-button>
    </el-tab-pane>
  </el-tabs>
</div>
